[INFO] cloning repository https://github.com/seritools/rust-exercises
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seritools/rust-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseritools%2Frust-exercises", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseritools%2Frust-exercises'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] cd6ef05e36dcc533f2fc4876a87b57893f061e7d
[INFO] checking seritools/rust-exercises against try#d57d2d63e6f308d854fedbafd91d7721b7c651af for pr-110141
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseritools%2Frust-exercises" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/seritools/rust-exercises on toolchain d57d2d63e6f308d854fedbafd91d7721b7c651af
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d57d2d63e6f308d854fedbafd91d7721b7c651af" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/seritools/rust-exercises
[INFO] finished tweaking git repo https://github.com/seritools/rust-exercises
[INFO] tweaked toml for git repo https://github.com/seritools/rust-exercises written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/seritools/rust-exercises already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d57d2d63e6f308d854fedbafd91d7721b7c651af" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d57d2d63e6f308d854fedbafd91d7721b7c651af" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c0b37980c3f7c7082fcfa16daf8567e84907e921d627131d49a894f319b5dc95
[INFO] running `Command { std: "docker" "start" "-a" "c0b37980c3f7c7082fcfa16daf8567e84907e921d627131d49a894f319b5dc95", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c0b37980c3f7c7082fcfa16daf8567e84907e921d627131d49a894f319b5dc95", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c0b37980c3f7c7082fcfa16daf8567e84907e921d627131d49a894f319b5dc95", kill_on_drop: false }`
[INFO] [stdout] c0b37980c3f7c7082fcfa16daf8567e84907e921d627131d49a894f319b5dc95
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d57d2d63e6f308d854fedbafd91d7721b7c651af" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 802c6f7d1455212b5e44e92150902c5fe1c08ed6cf12c24aa314315eee11cdb6
[INFO] running `Command { std: "docker" "start" "-a" "802c6f7d1455212b5e44e92150902c5fe1c08ed6cf12c24aa314315eee11cdb6", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.0
[INFO] [stderr]    Compiling num-traits v0.2.11
[INFO] [stderr]     Checking rust-exercises v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/bin/generic-numbers.rs:8:28
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |           - this type parameter
[INFO] [stdout] 7 |     // We're going to exploit the property that, where a is negative, a % b == a mod b - b
[INFO] [stdout] 8 |     let rem_error = if a < 0 { b } else { 0 };
[INFO] [stdout]   |                        -   ^ expected type parameter `T`, found integer
[INFO] [stdout]   |                        |
[INFO] [stdout]   |                        expected because this is `T`
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected type parameter `T`
[INFO] [stdout]                        found type `{integer}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `if` and `else` have incompatible types
[INFO] [stdout]  --> src/bin/generic-numbers.rs:8:43
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |           - this type parameter
[INFO] [stdout] 7 |     // We're going to exploit the property that, where a is negative, a % b == a mod b - b
[INFO] [stdout] 8 |     let rem_error = if a < 0 { b } else { 0 };
[INFO] [stdout]   |                                -          ^ expected type parameter `T`, found integer
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                expected because of this
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected type parameter `T`
[INFO] [stdout]                        found type `{integer}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/bin/generic-numbers.rs:8:28
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |           - this type parameter
[INFO] [stdout] 7 |     // We're going to exploit the property that, where a is negative, a % b == a mod b - b
[INFO] [stdout] 8 |     let rem_error = if a < 0 { b } else { 0 };
[INFO] [stdout]   |                        -   ^ expected type parameter `T`, found integer
[INFO] [stdout]   |                        |
[INFO] [stdout]   |                        expected because this is `T`
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected type parameter `T`
[INFO] [stdout]                        found type `{integer}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `if` and `else` have incompatible types
[INFO] [stdout]  --> src/bin/generic-numbers.rs:8:43
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |           - this type parameter
[INFO] [stdout] 7 |     // We're going to exploit the property that, where a is negative, a % b == a mod b - b
[INFO] [stdout] 8 |     let rem_error = if a < 0 { b } else { 0 };
[INFO] [stdout]   |                                -          ^ expected type parameter `T`, found integer
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                expected because of this
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected type parameter `T`
[INFO] [stdout]                        found type `{integer}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/bin/generic-numbers.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |           - this type parameter                                                   - expected `T` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 9 |     a % b + rem_error
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^ expected type parameter `T`, found associated type
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected type parameter `T`
[INFO] [stdout]             found associated type `<T as Rem>::Output`
[INFO] [stdout] help: consider further restricting this bound
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem<Output = T> + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |                                           ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/bin/generic-numbers.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |           - this type parameter                                                   - expected `T` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 9 |     a % b + rem_error
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^ expected type parameter `T`, found associated type
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected type parameter `T`
[INFO] [stdout]             found associated type `<T as Rem>::Output`
[INFO] [stdout] help: consider further restricting this bound
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn modulo<T: std::ops::Add + std::ops::Rem<Output = T> + std::cmp::PartialOrd>(a: T, b: T) -> T {
[INFO] [stdout]   |                                           ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-exercises` (bin "generic-numbers" test) due to 4 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rust-exercises` (bin "generic-numbers") due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "802c6f7d1455212b5e44e92150902c5fe1c08ed6cf12c24aa314315eee11cdb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "802c6f7d1455212b5e44e92150902c5fe1c08ed6cf12c24aa314315eee11cdb6", kill_on_drop: false }`
[INFO] [stdout] 802c6f7d1455212b5e44e92150902c5fe1c08ed6cf12c24aa314315eee11cdb6
